<?php
namespace app\index\validate;
use think\Validate;
// 自动加载验证
class Resources extends Validate
{

 
  protected $rule =   [
        'desc'  => 'require:resources|max:25',
        // 'content'   => 'require',
        'type' => 'require|between:1,12',    
    ];

    protected $message  =   [
        'desc.require' => '文件名称必须填写',
        'desc.max'     => '文件名称最多不能超过25个字符',
        // 'content.number'   => '年龄必须是数字',
        'type.between'  => '类型只能在1-12之间',
       
    ];

    protected $scene = [
        'add'  =>  ['desc','type'],
    ];




    

    




   

	












}
